﻿using Iot.Injection;
using Iot.RealTimeData.WPF.Prism.ShowValue;
using Prism.Ioc;

namespace Iot.RealTimeData.WPF.Prism;

public static class WpfInjection
{
    public static void WpfRealTimeData(this IContainerRegistry containerRegistry, RealTimeDataInfo info)
    {
        containerRegistry.RealTimeData<ValueFactory>(info);
    }

    public static void WpfRealTimeData(this IContainerRegistry containerRegistry)
    {
        WpfRealTimeData(containerRegistry, new RealTimeDataInfo());
    }
}